package builder.AccountFormBuilderPackage;

import builder.FormBuilder;
import builder.FormBuilderDecorator;
import form.AccountForm.AccountForm;

public class UneditableAccountFormDecorator extends FormBuilderDecorator {

	public UneditableAccountFormDecorator(FormBuilder decoratee) {
		super(decoratee);
	}
	
	public void setFormSettings(){
		super.setFormSettings();
	}

	public void buildComponents(){
		super.buildComponents();
		
		AccountForm accountForm = (AccountForm) form;
		accountForm.addComponents();
		
		for(int i=0; i< accountForm.getInputComponents().size();i++){
			accountForm.getInputComponents().get(i).getInputComponent().setEnabled(false);
			
		}
	}
}
